package ruler.rules.activities;

import java.util.List;
import ruler.main.R;
import ruler.rules.Rule;
import ruler.rules.Rule.DEVICE_TYPE;
import android.os.Bundle;
import android.widget.TextView;

public class GPSRulesListActivity extends RulesListActivity {
	
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		TextView textViewEnable = (TextView) findViewById(R.id.textEnable);
		textViewEnable.setText("GPS Enable Rules");
		TextView textViewDisable = (TextView) findViewById(R.id.textDisable);
		textViewDisable.setText("GPS Disable Rules");		
	}
	
	@Override
	protected List<Rule> setEnableRules() {
		return app.getRules(DEVICE_TYPE.GPS,true);
	}
	
	@Override
	protected List<Rule> setDisableRules() {
		return app.getRules(DEVICE_TYPE.GPS,false);
	}
	
}
